package com.rsc.learningbar.dao;

import com.rsc.learningbar.entity.StudentMissionDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;


@Repository
public interface StudentMissionDetailRepository extends JpaRepository<StudentMissionDetail, Integer> {
//    //自定义repository。手写sql
//    @Query(value = "update t_route set uri=?1 where id=?2",nativeQuery = true)   //占位符传值形式
//    @Modifying
//    int updateById(String name,int id);
//
//    @Query("from Route u where u.uuid=:uuid")   //SPEL表达式
//    Route findRoute(@Param("uuid") String uuid);
}
